import { JSONMapping } from "../json-mapping";
import {ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class Area extends JSONMapping implements ObjectDtoInterface {
    static PropertyKeyToJSONKeyMap() {
        return {
          id: "areaId",
          name: "areaName",
        };
    }
    public id: string = null; // UI显示用的台区Id
    public name: string = null; // UI显示用的台区名字
    public syncStatus: SyncStatus = SyncStatus.None;


    constructor(json: { [key: string]: any }) {
        super(json);
        Area.mapFromJSON(json, this);
    }
}

